﻿@{
    Layout = null;
}
<!doctype html>
<html lang="zh">
<head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <meta charset="utf-8">
    <title>资源管理器</title>
    <environment names="Development">
        <link href="~/Content/bootswatch.min.css" rel="stylesheet" />
        <link href="~/fonts/icomoon.css" rel="stylesheet" />
        <link href="~/ng-views/filemanager/css/animations.css" rel="stylesheet">
        <link href="~/ng-views/filemanager/css/dialogs.css" rel="stylesheet">
        <link href="~/ng-views/filemanager/css/main.css" rel="stylesheet">
        <link href="~/Content/common/loading.min.css" rel="stylesheet" />
    </environment>
    <environment names="Stage,Production">
        @await Styles.RenderAsync("~/bundles/filemanager.css")
    </environment>
    <script src="https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/angular.js/1.7.7/angular.min.js"></script>
    <script src="https://cdn.staticfile.org/angular-translate/2.18.1/angular-translate.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <environment names="Development">
        <script src="~/Scripts/ng-file-upload.min.js"></script>
        <script src="~/ng-views/filemanager/js/app.js"></script>
        <script src="~/ng-views/filemanager/js/directives/directives.js"></script>
        <script src="~/ng-views/filemanager/js/filters/filters.js"></script>
        <script src="~/ng-views/filemanager/js/providers/config.js"></script>
        <script src="~/ng-views/filemanager/js/entities/chmod.js"></script>
        <script src="~/ng-views/filemanager/js/entities/item.js"></script>
        <script src="~/ng-views/filemanager/js/services/apihandler.js"></script>
        <script src="~/ng-views/filemanager/js/services/apimiddleware.js"></script>
        <script src="~/ng-views/filemanager/js/services/filenavigator.js"></script>
        <script src="~/ng-views/filemanager/js/providers/translations.js"></script>
        <script src="~/ng-views/filemanager/js/controllers/main.js"></script>
        <script src="~/ng-views/filemanager/js/controllers/selector-controller.js"></script>
    </environment>
    <environment names="Stage,Production">
        @await Scripts.RenderAsync("~/bundles/filemanager.js")
    </environment>
</head>

<body class="ng-cloak" data-ng-app="FileManagerApp">
    <angular-filemanager></angular-filemanager>
</body>
</html>
<script type="text/javascript">
    angular.module('FileManagerApp').config(['fileManagerConfigProvider', function (config) {
        var defaults = config.$get();
        config.set({
            appName: '资源管理器',
            pickCallback: function (item) {
                var msg = 'Picked %s "%s" for external use'.replace('%s', item.type).replace('%s', item.fullPath());
                window.alert(msg);
            },

            allowedActions: angular.extend(defaults.allowedActions, {
                pickFiles: false,
                pickFolders: false
            })
        });
    }]);
</script>